window.fbAsyncInit = function() {
    FB.init({
        appId      : '109883125733714',
        status     : true, 
        cookie     : true,
        xfbml      : true
    });
    
    FB.getLoginStatus(function(response) {
        if (response.session) {
            return "true";
        }
        else
            return "false";
    });
};

(function(d){
    var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js";
    d.getElementsByTagName('head')[0].appendChild(js);
}(document));
